﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Diagnostics;

namespace CommonFramework
{
    public  class GenrIO
    {
        public static GenrIO Instance = new GenrIO();

        private GenrIO() { }

        public void WriteToFile(string fileFullName,string content) 
        {
            //Debug.Assert(File.Exists(fileFullName));
            //if (!File.Exists(fileFullName))
            //{
            //    throw new ArgumentException("file not exists:"+fileFullName);
            //}
            using (StreamWriter sw = new StreamWriter(fileFullName,true,Encoding.Unicode))
            {
                sw.WriteLine(content);
            }
        }
    }
}
